package com.hqyj.cl.mapper;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.context.web.WebAppConfiguration;


@RunWith(SpringJUnit4ClassRunner.class)//就是指用JUnit4来运行
@ContextConfiguration(locations = {"classpath:config/spring-mybatis.xml"})
@WebAppConfiguration
public class TestSql  {
    @Autowired
    private InfoMapper infoMapper;
    @Test
    public void selectAllInfo(){
        System.out.println(infoMapper.selectAllInfo());
    }
    @Test
    public void allProvinceInfo(){
        System.out.println(infoMapper.allProvinceInfo());
    }
}
